↳ ITRS
↳ ITRStoQTRSProof
z
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(>@z(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(>=@z(y, x), zl, zh, x, y, zs)
Cond_if_2(TRUE, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(TRUE, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(TRUE, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(>=@z(y, x), x, y, zs)
Cond_split1(TRUE, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(>@z(x, y), x, y, zs)
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(TRUE, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(TRUE, x0, x1, x2, x3, x4)
Cond_split(TRUE, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(TRUE, x0, x1, x2)
qsort(e)
app(nil, x0)
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
IF_3(pair(yl, yh), x, ys) → APP(qsort(yl), cons(x, qsort(yh)))
IF_3(pair(yl, yh), x, ys) → QSORT(yl)
IF_3(pair(yl, yh), x, ys) → QSORT(yh)
IF_1(pair(zl, zh), x, y, zs) → COND_IF_1(greater_int(x, y), zl, zh, x, y, zs)
IF_1(pair(zl, zh), x, y, zs) → GREATER_INT(x, y)
QSORT(ins(x, ys)) → IF_3(split(x, ys), x, ys)
QSORT(ins(x, ys)) → SPLIT(x, ys)
IF_2(pair(zl, zh), x, y, zs) → COND_IF_2(greatereq_int(y, x), zl, zh, x, y, zs)
IF_2(pair(zl, zh), x, y, zs) → GREATEREQ_INT(y, x)
APP(cons(x, ys), zs) → APP(ys, zs)
COND_SPLIT(true, x, y, zs) → IF_1(split(x, zs), x, y, zs)
COND_SPLIT(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT1(greatereq_int(y, x), x, y, zs)
SPLIT(x, ins(y, zs)) → GREATEREQ_INT(y, x)
COND_SPLIT1(true, x, y, zs) → IF_2(split(x, zs), x, y, zs)
COND_SPLIT1(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT(greater_int(x, y), x, y, zs)
SPLIT(x, ins(y, zs)) → GREATER_INT(x, y)
GREATER_INT(pos(s(x)), pos(s(y))) → GREATER_INT(pos(x), pos(y))
GREATER_INT(neg(s(x)), neg(s(y))) → GREATER_INT(neg(x), neg(y))
GREATEREQ_INT(pos(s(x)), pos(s(y))) → GREATEREQ_INT(pos(x), pos(y))
GREATEREQ_INT(neg(s(x)), neg(s(y))) → GREATEREQ_INT(neg(x), neg(y))
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
IF_3(pair(yl, yh), x, ys) → APP(qsort(yl), cons(x, qsort(yh)))
IF_3(pair(yl, yh), x, ys) → QSORT(yl)
IF_3(pair(yl, yh), x, ys) → QSORT(yh)
IF_1(pair(zl, zh), x, y, zs) → COND_IF_1(greater_int(x, y), zl, zh, x, y, zs)
IF_1(pair(zl, zh), x, y, zs) → GREATER_INT(x, y)
QSORT(ins(x, ys)) → IF_3(split(x, ys), x, ys)
QSORT(ins(x, ys)) → SPLIT(x, ys)
IF_2(pair(zl, zh), x, y, zs) → COND_IF_2(greatereq_int(y, x), zl, zh, x, y, zs)
IF_2(pair(zl, zh), x, y, zs) → GREATEREQ_INT(y, x)
APP(cons(x, ys), zs) → APP(ys, zs)
COND_SPLIT(true, x, y, zs) → IF_1(split(x, zs), x, y, zs)
COND_SPLIT(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT1(greatereq_int(y, x), x, y, zs)
SPLIT(x, ins(y, zs)) → GREATEREQ_INT(y, x)
COND_SPLIT1(true, x, y, zs) → IF_2(split(x, zs), x, y, zs)
COND_SPLIT1(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT(greater_int(x, y), x, y, zs)
SPLIT(x, ins(y, zs)) → GREATER_INT(x, y)
GREATER_INT(pos(s(x)), pos(s(y))) → GREATER_INT(pos(x), pos(y))
GREATER_INT(neg(s(x)), neg(s(y))) → GREATER_INT(neg(x), neg(y))
GREATEREQ_INT(pos(s(x)), pos(s(y))) → GREATEREQ_INT(pos(x), pos(y))
GREATEREQ_INT(neg(s(x)), neg(s(y))) → GREATEREQ_INT(neg(x), neg(y))
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATEREQ_INT(neg(s(x)), neg(s(y))) → GREATEREQ_INT(neg(x), neg(y))
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATEREQ_INT(neg(s(x)), neg(s(y))) → GREATEREQ_INT(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATEREQ_INT(neg(s(x)), neg(s(y))) → GREATEREQ_INT(neg(x), neg(y))
No rules are removed from R.
GREATEREQ_INT(neg(s(x)), neg(s(y))) → GREATEREQ_INT(neg(x), neg(y))
POL(GREATEREQ_INT(x1, x2)) = 2·x1 + x2
POL(neg(x1)) = x1
POL(s(x1)) = 2·x1
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATEREQ_INT(pos(s(x)), pos(s(y))) → GREATEREQ_INT(pos(x), pos(y))
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATEREQ_INT(pos(s(x)), pos(s(y))) → GREATEREQ_INT(pos(x), pos(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATEREQ_INT(pos(s(x)), pos(s(y))) → GREATEREQ_INT(pos(x), pos(y))
No rules are removed from R.
GREATEREQ_INT(pos(s(x)), pos(s(y))) → GREATEREQ_INT(pos(x), pos(y))
POL(GREATEREQ_INT(x1, x2)) = 2·x1 + x2
POL(pos(x1)) = x1
POL(s(x1)) = 2·x1
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATER_INT(neg(s(x)), neg(s(y))) → GREATER_INT(neg(x), neg(y))
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATER_INT(neg(s(x)), neg(s(y))) → GREATER_INT(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
GREATER_INT(neg(s(x)), neg(s(y))) → GREATER_INT(neg(x), neg(y))
No rules are removed from R.
GREATER_INT(neg(s(x)), neg(s(y))) → GREATER_INT(neg(x), neg(y))
POL(GREATER_INT(x1, x2)) = 2·x1 + x2
POL(neg(x1)) = x1
POL(s(x1)) = 2·x1
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
GREATER_INT(pos(s(x)), pos(s(y))) → GREATER_INT(pos(x), pos(y))
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
GREATER_INT(pos(s(x)), pos(s(y))) → GREATER_INT(pos(x), pos(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ QDP
↳ QDP
GREATER_INT(pos(s(x)), pos(s(y))) → GREATER_INT(pos(x), pos(y))
No rules are removed from R.
GREATER_INT(pos(s(x)), pos(s(y))) → GREATER_INT(pos(x), pos(y))
POL(GREATER_INT(x1, x2)) = 2·x1 + x2
POL(pos(x1)) = x1
POL(s(x1)) = 2·x1
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
APP(cons(x, ys), zs) → APP(ys, zs)
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
APP(cons(x, ys), zs) → APP(ys, zs)
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
APP(cons(x, ys), zs) → APP(ys, zs)
From the DPs we obtained the following set of size-change graphs:
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
COND_SPLIT(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT1(greatereq_int(y, x), x, y, zs)
COND_SPLIT1(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT(greater_int(x, y), x, y, zs)
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
COND_SPLIT(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT1(greatereq_int(y, x), x, y, zs)
COND_SPLIT1(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT(greater_int(x, y), x, y, zs)
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
COND_SPLIT(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT1(greatereq_int(y, x), x, y, zs)
COND_SPLIT1(true, x, y, zs) → SPLIT(x, zs)
SPLIT(x, ins(y, zs)) → COND_SPLIT(greater_int(x, y), x, y, zs)
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
From the DPs we obtained the following set of size-change graphs:
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
IF_3(pair(yl, yh), x, ys) → QSORT(yl)
QSORT(ins(x, ys)) → IF_3(split(x, ys), x, ys)
IF_3(pair(yl, yh), x, ys) → QSORT(yh)
if_3(pair(yl, yh), x, ys) → app(qsort(yl), cons(x, qsort(yh)))
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
qsort(ins(x, ys)) → if_3(split(x, ys), x, ys)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
app(cons(x, ys), zs) → cons(x, app(ys, zs))
split(x, e) → pair(e, e)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
qsort(e) → nil
app(nil, zs) → zs
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IF_3(pair(yl, yh), x, ys) → QSORT(yl)
QSORT(ins(x, ys)) → IF_3(split(x, ys), x, ys)
IF_3(pair(yl, yh), x, ys) → QSORT(yh)
split(x, e) → pair(e, e)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
if_3(pair(x0, x1), x2, x3)
if_1(pair(x0, x1), x2, x3, x4)
qsort(ins(x0, x1))
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
app(cons(x0, x1), x2)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
qsort(e)
app(nil, x0)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
if_3(pair(x0, x1), x2, x3)
qsort(ins(x0, x1))
app(cons(x0, x1), x2)
qsort(e)
app(nil, x0)
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPOrderProof
IF_3(pair(yl, yh), x, ys) → QSORT(yl)
QSORT(ins(x, ys)) → IF_3(split(x, ys), x, ys)
IF_3(pair(yl, yh), x, ys) → QSORT(yh)
split(x, e) → pair(e, e)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
if_1(pair(x0, x1), x2, x3, x4)
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
QSORT(ins(x, ys)) → IF_3(split(x, ys), x, ys)
Used ordering: Polynomial interpretation [POLO]:
IF_3(pair(yl, yh), x, ys) → QSORT(yl)
IF_3(pair(yl, yh), x, ys) → QSORT(yh)
POL(0) = 0
POL(Cond_if_1(x1, x2, x3, x4, x5, x6)) = 1 + x2 + x3
POL(Cond_if_2(x1, x2, x3, x4, x5, x6)) = 1 + x2 + x3
POL(Cond_split(x1, x2, x3, x4)) = 1 + x4
POL(Cond_split1(x1, x2, x3, x4)) = 1 + x4
POL(IF_3(x1, x2, x3)) = x1
POL(QSORT(x1)) = x1
POL(e) = 0
POL(false) = 0
POL(greater_int(x1, x2)) = 0
POL(greatereq_int(x1, x2)) = x1
POL(if_1(x1, x2, x3, x4)) = 1 + x1
POL(if_2(x1, x2, x3, x4)) = 1 + x1
POL(ins(x1, x2)) = 1 + x2
POL(neg(x1)) = x1
POL(pair(x1, x2)) = x1 + x2
POL(pos(x1)) = 1 + x1
POL(s(x1)) = 1 + x1
POL(split(x1, x2)) = x2
POL(true) = 0
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
split(x, e) → pair(e, e)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
↳ ITRS
↳ ITRStoQTRSProof
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
IF_3(pair(yl, yh), x, ys) → QSORT(yl)
IF_3(pair(yl, yh), x, ys) → QSORT(yh)
split(x, e) → pair(e, e)
split(x, ins(y, zs)) → Cond_split1(greatereq_int(y, x), x, y, zs)
split(x, ins(y, zs)) → Cond_split(greater_int(x, y), x, y, zs)
greater_int(pos(0), pos(0)) → false
greater_int(pos(0), neg(0)) → false
greater_int(neg(0), pos(0)) → false
greater_int(neg(0), neg(0)) → false
greater_int(pos(0), pos(s(y))) → false
greater_int(neg(0), pos(s(y))) → false
greater_int(pos(0), neg(s(y))) → true
greater_int(neg(0), neg(s(y))) → true
greater_int(pos(s(x)), pos(0)) → true
greater_int(neg(s(x)), pos(0)) → false
greater_int(pos(s(x)), neg(0)) → true
greater_int(neg(s(x)), neg(0)) → false
greater_int(pos(s(x)), neg(s(y))) → true
greater_int(neg(s(x)), pos(s(y))) → false
greater_int(pos(s(x)), pos(s(y))) → greater_int(pos(x), pos(y))
greater_int(neg(s(x)), neg(s(y))) → greater_int(neg(x), neg(y))
Cond_split(true, x, y, zs) → if_1(split(x, zs), x, y, zs)
if_1(pair(zl, zh), x, y, zs) → Cond_if_1(greater_int(x, y), zl, zh, x, y, zs)
Cond_if_1(true, zl, zh, x, y, zs) → pair(ins(y, zl), zh)
greatereq_int(pos(x), pos(0)) → true
greatereq_int(neg(0), pos(0)) → true
greatereq_int(neg(0), neg(y)) → true
greatereq_int(pos(x), neg(y)) → true
greatereq_int(pos(0), pos(s(y))) → false
greatereq_int(neg(x), pos(s(y))) → false
greatereq_int(neg(s(x)), pos(0)) → false
greatereq_int(neg(s(x)), neg(0)) → false
greatereq_int(pos(s(x)), pos(s(y))) → greatereq_int(pos(x), pos(y))
greatereq_int(neg(s(x)), neg(s(y))) → greatereq_int(neg(x), neg(y))
Cond_split1(true, x, y, zs) → if_2(split(x, zs), x, y, zs)
if_2(pair(zl, zh), x, y, zs) → Cond_if_2(greatereq_int(y, x), zl, zh, x, y, zs)
Cond_if_2(true, zl, zh, x, y, zs) → pair(zl, ins(y, zh))
if_1(pair(x0, x1), x2, x3, x4)
if_2(pair(x0, x1), x2, x3, x4)
Cond_if_2(true, x0, x1, x2, x3, x4)
split(x0, e)
Cond_if_1(true, x0, x1, x2, x3, x4)
Cond_split(true, x0, x1, x2)
split(x0, ins(x1, x2))
Cond_split1(true, x0, x1, x2)
greater_int(pos(0), pos(0))
greater_int(pos(0), neg(0))
greater_int(neg(0), pos(0))
greater_int(neg(0), neg(0))
greater_int(pos(0), pos(s(x0)))
greater_int(neg(0), pos(s(x0)))
greater_int(pos(0), neg(s(x0)))
greater_int(neg(0), neg(s(x0)))
greater_int(pos(s(x0)), pos(0))
greater_int(neg(s(x0)), pos(0))
greater_int(pos(s(x0)), neg(0))
greater_int(neg(s(x0)), neg(0))
greater_int(pos(s(x0)), neg(s(x1)))
greater_int(neg(s(x0)), pos(s(x1)))
greater_int(pos(s(x0)), pos(s(x1)))
greater_int(neg(s(x0)), neg(s(x1)))
greatereq_int(pos(x0), pos(0))
greatereq_int(neg(0), pos(0))
greatereq_int(neg(0), neg(x0))
greatereq_int(pos(x0), neg(x1))
greatereq_int(pos(0), pos(s(x0)))
greatereq_int(neg(x0), pos(s(x1)))
greatereq_int(neg(s(x0)), pos(0))
greatereq_int(neg(s(x0)), neg(0))
greatereq_int(pos(s(x0)), pos(s(x1)))
greatereq_int(neg(s(x0)), neg(s(x1)))